{{include file="default/Public/header.html"}}
<script src="{{$smarty.const._PUBLIC_}}js/ajax.js" type="text/javascript"></script>
<script language="javascript">
//联动下拉框	
function fide(){

    var aa=document.getElementById("type").value;
   	if(aa!=0){
    	qt_ajax_request('post',"__ROOT__/admin.php?m=fplace&a=ajax_fid",fid_back,"type="+aa);
    }
}
function fid_back(data){
	var ee = document.getElementById("seld");
	var com ="<select name=\"info[fid]\" id=\"fid\"><option value=\"0\">请选择所属栏目</option>";
	for(var i=0;i<data.length;i++){
		com += "<option value=\""+data[i]['id']+"\">"+data[i]['name']+"</option>";
		}
	com += "</select>";
	ee.innerHTML=com;
}
</script>
<form method="post" action="{{U url='fplace/add?dosubmit=1'}}">
<div id="pageTop">
<div class="tabs">
<ul>
	<li><a href='#' class="selected" rel="tabsContent1"><span>基本信息</span></a></li>
</ul>
</div>
</div>
<div id="pageCo">
<div class="manageForm">
<table cellpadding="0" cellspacing="0" class="tabcontent" id="tabsContent{{$id}}" {{if $id>1}} style="display:none"{{/if}}>
	<tbody>
		<!--<tr>
			<th width="150">所属产品ID<span></span></th>
			<td><input type="text" name="info[cid]" readonly="readonly" id="info[cid]" value="{{$in.cid}}" class="input" maxlength="8" /></td>
		</tr>-->
		<tr>
			<th width="150">选择所属栏目<span></span></th>
			<td>
				<label>
				<select name="info[type]" id="type" onchange="fide()">
					<option value="0">请选择所属栏目</option>
			        <option value="2">台湾游</option>
			        <option value="3">出镜游</option>
			        <option value="4">国内游</option>
			        <option value="5">商务会奖游</option>
      			</select>
      			</label>
			</td>
		</tr>
		<tr>
			<th width="150">选择地区大类<span>不选择表示添加大类</span></th>
			<td>
				<label>
				 <div name="seld" id="seld">
      				<select name="info[fid]" id="fid">
        				<option value="0">请选择地区大类</option>
      				</select>
      			</div>
      			</label>
			</td>
		</tr>
		<tr>
			<th width="150">名称<span></span></th>
			<td><label><input type="text" name="info[name]"  id="name" value="" class="input" maxlength="12" /></label></td>
		</tr>
	</tbody>
</table>
<table cellpadding="0" cellspacing="0">
	<tfoot>
		<tr>
			<th width="150">&nbsp;</th>
			<td><label class="btn"><input type="submit"
				name="submit" value="确定保存" class="submit" /></label></td>
		</tr>
	</tfoot>
</table>
</div>
</div>
<input type="hidden" name="forward" value="{{$forward}}" /> <input
	type="hidden" name="catid" id="catid" value="{{$cat.catid}}" /> <input
	type="hidden" name="info[action]" id="action" value="show" /></form>
{{include file="default/Public/footer.html"}}
